<?php
	
	$url = $config->getVar('url');
	drupal_set_title('');
	drupal_add_js('misc/collapse.js');
	
	echo '
	<div id="tabs-wrapper" class="clear-block">
		<h2 class="with-tabs">Chercher un &eacute;l&eacute;ment</h2>
	</div>
	<form action="'.$url.'/bdbdec.php?action=search" method="post">
		<fieldset class="collapsible">
			<legend><a href="#">Mode simple</a></legend>
			<p class="field">
				Choisissez vos param&egrave;tres de recherche. Pour plus d\'options mode de recherche plus complet, utilisez le mode avanc&eacute;	
			</p>
			<p class="field half">
				<label>Expression recherch&eacute;e</label>
				<input type="text" name="searchfield" class="searchfield"/>
			</p>
			<p class="field half">
				<label>Liaison entre les mots</label>
				<select name="link">
					<option value="and">Et</option>
					<option value="or">Ou</option>
				</select>
			</p>
			<p class="field half">
				<label>Que cherchez vous :</label>
				<select name="element">
					<option value="book">Album</option>
					<option value="serie">S&eacute;rie</option>
					<option value="author">Auteur</option>
					<option value="publisher">&Eacute;diteur</option>
				</select>
			</p>
			<p class="field">
				Dans quels &eacute;lements souhaitez-vous chercher ?
			</p>
			<p class="checkbox">
				<label><input type="checkbox" name="searchfields[]" value="al_name" checked="checked"/> Titre des albums </label>
			</p>
			<p class="checkbox">
				<label><input type="checkbox" name="searchfields[]" value="se_name" checked="checked"/> Nom des s&eacute;ries </label>
			</p>
			<p class="checkbox">
				<label><input type="checkbox" name="searchfields[]" value="pu_name" checked="checked"/> Noms des &eacute;diteurs </label>
			</p>
			<p class="checkbox">
				<label><input type="checkbox" name="searchfields[]" value="bo_cotation" checked="checked"/> C&ocirc;tes des albums </label>
			</p>
			<p class="checkbox">
				<label><input type="checkbox" name="searchfields[]" value="au_name" checked="checked"/> Nom des auteurs </label>
			</p>
			<input type="hidden" name="typesearch" value="simple"/>
			<p class="field half">
				<br />
				<input type="submit" value="Valider">
			</p>
		</fieldset>
	</form>
	
	<form action="'.$url.'/bdbdec.php?action=search" method="post">
		<fieldset class="collapsible collapsed">
			<legend><a href="#">Mode avanc&eacute;</a></legend>
				<p class="field">
					En construction
				</p>
		</fieldset>
	</form>
	
	';
?>